<include file="Public:header"/>
<form class="ajax-form" action="" method="post">
<div class="form_data">

	<include file="edit_option"/>

	<div class="mod_data">
		<div class="name">名称</div>
		<div class="input_data">
			{$info['title']}
		</div>
	</div>

	<div class="mod_data">
		<div class="name">替换标签</div>
		<div class="input_data">
			<ul class="label-list">
				<volist name="label_list" id="label">
					<neq name="label" value="">
						<li>{{$label}}</li>
					</neq>
				</volist>
			</ul>
		</div>
	</div>

	<div class="mod_data">
		<div class="name">合同内容</div>
		<div class="input_data">
			<textarea name="content" class="ueditor" id="ueditor_content" style="width: 850px;height:350px;">{$info['content']}</textarea>
		</div>
	</div>

	<div class="mod_submit">
		<input type="hidden" name="id" value="{$info['id']}">
		<input type="hidden" name="type" value="{$type}">
		<button type="submit" class="btn btn-save">保存</button>
		<button type="reset" class="btn btn-reset">重置</button>
		<button class="btn btn-back">返回</button>
	</div>
</div>
</form>
<style type="text/css">
.label-list{
	width: 800px;
}
.label-list li{
	padding: 0px 10px;
    color: #FFF;
    line-height: 30px;
    height: 30px;
    cursor: pointer;
    display: inline-block;
    background-color: #2796D7;
    border: 0px;
    outline: none;
    font-size: 14px;
    border-radius: 3px;
    margin-right: 10px;
    margin-bottom: 10px;
}
</style>
<script type="text/javascript">
$(document).ready(function () {
	$('.label-list li').click(function () {
		var label = $(this).text();
		UE.getEditor('ueditor_content').execCommand('insertHtml', label);
		return false;
	})
})
</script>
<include file="Public:footer"/>